/*
 *  Copyright (C) 2010 Martin Haulrich <mwh.isv@cbs.dk> and Matthias Buch-Kromann <mbk.isv@cbs.dk>
 *
 *  This file is part of the IncrementalParser package.
 *
 *  The IncrementalParser program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Lesser General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package org.osdtsystem.incparser.parsers;

import org.osdtsystem.incparser.featureextraction.FeatureExtractor;
import org.osdtsystem.incparser.features.FeatureHandler;
import org.osdtsystem.incparser.features.WeightVector;
import org.osdtsystem.incparser.graphs.BaseGraph;
import org.osdtsystem.incparser.graphs.ConllAdapter;

/**
 * 
 * @author Martin Haulrich and Matthias Buch-Kromann
 */
public class DummyParser extends AbstractConllParser {
    public DummyParser(FeatureHandler edgeTypeHandler,
            FeatureHandler stringHandler, FeatureHandler featureHandler) {
        super(edgeTypeHandler, stringHandler, featureHandler);
    }

    @Override
    FeatureExtractor[][] featureExtractorGroups(ConllAdapter graph) {
        FeatureExtractor[][] extractorGroups = {};
        return extractorGroups;
    }

    @Override
    public ConllAdapter parse(WeightVector weights, ConllAdapter adapter) {
        BaseGraph graph = adapter.baseGraph();
        int nodes = adapter.nodes(graph);
        for (int i = 1; i < nodes; ++i)
            adapter.addEdge(i, i - 1, 0);
        graph.writeToFile("dump.parse");
        return adapter;
    }
}
